import request from '@/utils/request'
import API from './constants'

/**
 * 获取分类数据
 */
export const getCategories = () => request.get(API.CATEGORY_API)

/**
 * 根据主分类id获取子分类数据
 */
export const getSubCategories = id => request.get(API.TAB_API.replace('{id}', id))

/**
 * 根据分类获取该分类下的商品列表
 */
export const getList = id => request.get()

// export {
//   getCategories,
//   getSubCategories,
//   getList,
// }
